package hydrap2p.library;

import java.sql.ResultSet;
import java.sql.SQLException;


public class SqlListSharedItemInfo extends SqlList<SharedItemInfo> {

	Database db;
	// SELECT uid,name,path,dir,shared FROM Objects
	public SqlListSharedItemInfo(ResultSet results) throws SQLException {
		super(results);
		db=Database.getInstance();
	}

	@Override
	public SharedItemInfo get(int arg0) {
		try {
			seek(arg0);
			return db.load(results.getLong(1));
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}

}